//
//  HomePageApis.m
//  jzyStudents
//
//  Created by 任辰东 on 2022/9/22.
//

#import "HomePageApis.h"

@implementation HomePageApis

+ (void)ctb_zj_ShouyeRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v1/ctb_zj_Shouye" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

+ (void)codeSuccessRequestWithCode_no:(NSString *)code_no SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v1/xsjz_codeSuccess" withParams:@{@"code_no":code_no} onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

+ (void)LoginCodeRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v1/xsjz_LoginCode" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

@end
